From 43ad7c9714b1be81d74289845dddbfdaf6242ba2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 14 Oct 2014 13:51:09 +0200 Subject: [PATCH] inspector: Add a graph cell renderer ... and use it to display graphs for how object counts changed. --- gtk/inspector/Makefile.am | 2 ++ gtk/inspector/init.c | 2 ++ gtk/inspector/statistics.ui | 34 ++++++++++++++++++++++++++++++++++ gtk/inspector/statistics.ui.h | 2 ++ 4 files changed, 40 insertions(+) diff --git a/gtk/inspector/Makefile.am b/gtk/inspector/Makefile.am index da016f421f..e12f3e0c79 100644 --- a/gtk/inspector/Makefile.am +++ b/gtk/inspector/Makefile.am @@ -19,6 +19,8 @@ libgtkinspector_la_SOURCES = \ action-editor.c \ actions.h \ actions.c \ + cellrenderergraph.h \ + cellrenderergraph.c \ classes-list.h \ classes-list.c \ css-editor.h \ diff --git a/gtk/inspector/init.c b/gtk/inspector/init.c index 3e523b3837..80b303dc21 100644 --- a/gtk/inspector/init.c +++ b/gtk/inspector/init.c @@ -25,6 +25,7 @@ #include "init.h" #include "actions.h" +#include "cellrenderergraph.h" #include "classes-list.h" #include "css-editor.h" #include "data-list.h" @@ -51,6 +52,7 @@ gtk_inspector_init (void) { gtk_inspector_register_resource (); + g_type_ensure (GTK_TYPE_CELL_RENDERER_GRAPH); g_type_ensure (GTK_TYPE_GRAPH_DATA); g_type_ensure (GTK_TYPE_INSPECTOR_ACTIONS); g_type_ensure (GTK_TYPE_INSPECTOR_CLASSES_LIST); diff --git a/gtk/inspector/statistics.ui b/gtk/inspector/statistics.ui index 04148cd118..7c4ca20fe6 100644 --- a/gtk/inspector/statistics.ui +++ b/gtk/inspector/statistics.ui @@ -110,6 +110,40 @@ + + + True + 4 + Self + + + 0 + 1 + 1 + + + 6 + + + + + + + True + 5 + Cumulative + + + 0 + 1 + 1 + + + 7 + + + + diff --git a/gtk/inspector/statistics.ui.h b/gtk/inspector/statistics.ui.h index bbb27b36ac..b1fbb46542 100644 --- a/gtk/inspector/statistics.ui.h +++ b/gtk/inspector/statistics.ui.h @@ -4,4 +4,6 @@ N_("Self 1"); N_("Cumulative 1"); N_("Self 2"); N_("Cumulative 2"); +N_("Self"); +N_("Cumulative"); N_("Enable statistics with GOBJECT_DEBUG=instance-count"); -- 2.30.2